package com.xxg.renrensearch.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 根据关键词条件查询商品
 *
 * @author xxg
 * @date 2021/11/29
 */
@Data
@ApiModel(value = "GetProductByKeyWordQuery2", description = "根据关键词条件查询商品")
public class GetProductByKeyWordQuery2 {
    @ApiModelProperty(value = "店铺ID", hidden = true)
    private Integer shopId;
    @NotNull(message = "pageNo不能为null")
    @Min(value = 1, message = "pageNo的值不能小于1")
    @ApiModelProperty(value = "页码")
    private Integer pageNo;
    @NotNull(message = "keyword不能为null")
    @NotBlank(message = "keyword不能为空")
    @ApiModelProperty(value = "关键词")
    private String keyword;
}